package com.wulian.user.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@TableName("sys_tree")
@ApiModel("树")
@ToString
public class SysTree {
    /**
     * 主键id
     */
    @ApiModelProperty( value = "主键id")
    @TableField( "id")
    private Long id;

    /**
     * 生成tree编码
     */
    @ApiModelProperty( value = "生成tree编码")
    @TableField( "code")
    private String code;

    /**
     * 对应各个表中主键id
     */
    @ApiModelProperty( value = "对应各个表中主键id")
    @TableField( "chriled_id")
    private Long chriledId;

    /**
     * 对应各个表中主键父级id
     */
    @ApiModelProperty( value = "对应各个表中主键父级id")
    @TableField( "parent_id")
    private Long parentId;

    /**
     * 树类型1.保险公司2.机构3.渠道4.团队
     */
    @ApiModelProperty( value = "树类型1.保险公司2.机构3.渠道4.团队")
    @TableField( "type_id")
    private Integer typeId;

    /**
     * 名称
     */
    @ApiModelProperty( value = "名称")
    @TableField( "name")
    private String name;
}